package com.pcbly.web.components.utils.fetion;

/**
 * 飞信好友
 * 
 * @author Administrator
 * 
 */
public class FetionFriend {

	private String number; // 号码
	private String name = ""; // 名称：本地名称
	private FriendGroup group; // 组
	private String userId = ""; // 飞信中的ID
	private String uri = ""; // 类似：sip:687131158@fetion.com.cn;p=1732
	private String nickName = ""; // 好友名称

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public FriendGroup getGroup() {
		return group;
	}

	public void setGroup(FriendGroup group) {
		this.group = group;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	@Override
	public String toString() {
		String groupName = "";
		if(group == null){
			groupName="未知的分组";
		} else{
			groupName=group.getGroupName();
		}
		 
		return "[" + uri + "," + name + "," + nickName + "," + number + ","
				+ groupName
				+ "]";
	}

}
